#ifndef L1_D202506_H
#define L1_D202506_H
#include <iostream>
using namespace std;
// Q1 希望如光
void Q1() {
  cout << "Hope is a good thing," << "\n"
       << "maybe the best of things." << endl;
}

// Q2 计算表达式的值
int Q2() {
  int a, b, c;
  cin >> a >> b >> c;
  cout << b - (2 * a - c) << endl;
}

// Q3 倒计时
void Q3() {
  int n;
  cin >> n;
  for (int i = n; i > 0; i--) {
    cout << i << endl;
  }
}

// Q4 渡河问题
void Q4() {
  int a, b, n;
  cin >> a >> b;
  n = a + b + 2;
  cout << n / 4 + (n % 4 != 0) << endl;
}

// Q5 镜像加密
// 考点：字符类型、ASCLL 码
void Q5() {
  char ci, co;
  cin >> ci;
  // c => [a-zA-Z]
  // a-z => [65, 66, ..., 90]
  // A-Z => [97, 98, ..., 122]
  // 判断大小写
  int d = 0;
  if (ci >= 'a' && ci <= 'z') {
    d = ci - 'a';
    co = 'z' - d;
    cout << co << endl;
  } else if (ci >= 'A' && ci <= 'Z') {
    d = ci - 'A';
    co = 'Z' - d;
    cout << co << endl;
  } else {
    cout << "输入错误！请输入大写或小写字母。" << endl;
  }
}
#endif